//
//  BLPlayRoomSoureData.swift
//  BLLiveTelecast
//
//  Created by BigL055 on 16/6/6.
//  Copyright © 2016年 bigL.liveTelecast.com. All rights reserved.
//

import UIKit

class BLLiveRoomSoureData: NSObject {
    
    // 单例对象
    static let shareInstance : BLLiveRoomSoureData = BLLiveRoomSoureData()
    
    //房间ID
    var roomID : String? = ""
    
    var liveRoomItem : BLRoomItem? = BLRoomItem()
    
    var liveURL : NSURL? = NSURL(string: "")
    
    func updateLiveRoomData(roomID : String?) {
        
        BLGetDouyuData.shareInstance.getRoomData(roomID: roomID!) { (dataArray) in
            self.liveRoomItem = dataArray
            self.roomID = self.liveRoomItem?.room_id
            self.liveURL = NSURL(string: (self.liveRoomItem?.autoLiveUrl)!)
            
        }
    }
    
    
}
